<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/mb/jsp/common.jsp" %>
<%@page import="com.limao.Tool.CacheClass"%>
<html>
<head>
<title>客户端下载 — 七彩云购APP</title>
<style type="text/<a href="https://www.baidu.com/s?wd=css&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dhPWPbPjDYuARLn1nvnHTL0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6K1TL0qnfK1TL0z5HD0IgF_5y9YIZ0lQzqlpA-bmyt8mh7GuZR8mvqVQL7dugPYpyq8Q1DLnjDvnjbLPWTzn1R4njDLrj0" target="_blank" class="baidu-highlight">css</a>">
body{margin:auto;}
.mobile.top{position:fixed; top:0; left:0; width:<a href="https://www.baidu.com/s?wd=100%25&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dhPWPbPjDYuARLn1nvnHTL0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6K1TL0qnfK1TL0z5HD0IgF_5y9YIZ0lQzqlpA-bmyt8mh7GuZR8mvqVQL7dugPYpyq8Q1DLnjDvnjbLPWTzn1R4njDLrj0" target="_blank" class="baidu-highlight">100%</a>; height:20px; background:#933;}
.mobile.cn{height:5000px; background:#F9C; margin-top:20px;}
.mobile.foot{position:fixed; bottom:0; left:0; width:<a href="https://www.baidu.com/s?wd=100%25&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dhPWPbPjDYuARLn1nvnHTL0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6K1TL0qnfK1TL0z5HD0IgF_5y9YIZ0lQzqlpA-bmyt8mh7GuZR8mvqVQL7dugPYpyq8Q1DLnjDvnjbLPWTzn1R4njDLrj0" target="_blank" class="baidu-highlight">100%</a>; height:20px; background:#933;}
</style>
<script>
	$(window).on("load", function() {
			var browser={
				versions:function()
				{
						var u = navigator.userAgent, app = navigator.appVersion;
						return {         //移动终端浏览器版本信息
							trident: u.indexOf('Trident') > -1, //IE内核
							presto: u.indexOf('Presto') > -1, //opera内核
							webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
							gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
							mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
							ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
							android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或uc浏览器
							iPhone: u.indexOf('iPhone') > -1 , //是否为iPhone或者QQHD浏览器
							iPad: u.indexOf('iPad') > -1, //是否iPad
							webApp: u.indexOf('Safari') == -1 //是否web应该程序，没有头部与底部
						};
				}(),
				language:(navigator.browserLanguage || navigator.language).toLowerCase()
			};

			if(isWeiXin())
			{ 
				var p = document.getElementById('wx'); 
				p.style.display="";

				var p = document.getElementById('open'); 
				if(browser.versions.android){
					p.innerHTML="在浏览器中打开";
				}
				if(browser.versions.ios){
					p.innerHTML="在Safari中打开";
				}

	
			} 
			else
			{
				
				if(browser.versions.android)
				 {
					var p = document.getElementById('android');
					p.style.display="";
					window.location = '<%=CacheClass.getImgUrl()%>'+"limao51.apk";
				 }
				 else if(browser.versions.ios)
				 {
					var p = document.getElementById('ios');
					p.style.display="";
					//window.location = "https://itunes.apple.com/us/app/da-bu-zhu/id1146342173";
					//window.location = "https://itunes.apple.com/us/app/91limao/id1217358788";
					window.location = "http://www.pgyer.com/app/install/9565dcdba5ef65a7bfb4c40b6d8edc01";
				 }
				else
				{
					var p = document.getElementById('android');
					p.style.display="";
					var p = document.getElementById('ios');
					p.style.display="";

				}
		}

		function isWeiXin(){ 
			var ua = window.navigator.userAgent.toLowerCase(); 
			if(ua.match(/MicroMessenger/i) == 'micromessenger'){ 
				return true; 
			}else{ 
				return false; 
			} 
		} 

	    })
	    

function android()
		{
			window.location = '<%=CacheClass.getImgUrl()%>'+"limao51.apk";
		}
		

function ios()
		{
			//window.location = "https://itunes.apple.com/us/app/da-bu-zhu/id1146342173";
			//window.location = "https://itunes.apple.com/us/app/91limao/id1217358788";
			window.location = "http://www.pgyer.com/app/install/9565dcdba5ef65a7bfb4c40b6d8edc01";
		
		
		}


</script>
</head>
<script type="text/javascript">
$(document).ready(function(){
	$("#status").fadeOut();
	$("#preloader").delay(350).fadeOut("slow");
	//$("#footer").load("footer_nologin.html");
	
});
</script>
<body ontouchstart="">


<div class="container db jz  ">
    <section class="w100 h100">
        <div class="of downloadimg_1 " style="padding-top: 20%" >
            <div class="clearfix of "  >
            	<img src="mb/images/logo4.png" class="fl" style="margin-left:50px;" >
            	<div class="db br3 fr f12 c3" style="margin-right:40px;margin-top:40px;height:70px;line-height:20px;" >
	                  七彩云购APP【v1.2017080701】<BR>更新日期：2017-08-07 16:30
	        	</div>
            </div>
        </div>  
        <section class="loginBlock w100 db  mgt10" >
            <div id="wx" class="db br3 fl　f14" align="center"  style="margin-left:20px;margin-top:25px;height:70px;line-height:20px;display:none;" >
	                  	下载应用请点右上角按钮<BR>选择【<font color="#0099FF" id="open"></font>】
	        </div>
          
            <div class="w100 jz" id='android' style="display:none">
            		<button type="button" id="regBub" class="f18 cf tc w100 jz btnBlue" onClick="android();" style="margin-top: 32px;">安卓下载</button>
            </div>
            
   			<div class="w100 jz" id='ios' style="display:none">
   				<button type="button" id="regBub" class="f18 cf tc w100 jz btnBlue" onClick="ios();" style="margin-top: 32px;">IOS下载</button>
   			</div>
   	
        </section>
        <section class="pa w100 c9" style="bottom: 10%;z-index: 20;">
            <div class="w100 f14 tc ffa">
                <p>版本 :  v1.2017080701</p>
                <p>&copy;2017-2018 深圳市深海网络服务有限责任公司</p>
            </div>
        </section>
    </section>
</div>


</body>
</html>
